#ifndef ScanUI_H
#define ScanUI_H

#include <QWidget>
#include "barcodedata.h"

namespace Ui {
class ScanUI;
}

class ScanUI : public QWidget
{
    Q_OBJECT

public:
    explicit ScanUI(QWidget *parent = 0);
    ~ScanUI();

private slots:
    void updateTime();
    void getShow();

    void on_btnRet_clicked();
    void onReadData(const char* qData);

signals:
    void retMain();
    void paramSet(int iType);

private:
    Ui::ScanUI *ui;
    BarcodeData* dcReadData;
    QString firstBarcode;
    QString secondBarcode;
    QString thirdBarcode;
    int scanIdx;
    bool bStayScan;
};

#endif // ScanUI_H
